package com.cxhc.system.service.app;

import com.cxhc.system.domain.app.ApprovalFlow;

import java.util.List;

/**
 * 事项审批流程Service接口
 * 
 * @author Dhq
 * @date 2024-08-06
 */
public interface IApprovalFlowService 
{
    /**
     * 查询事项审批流程
     * 
     * @param id 事项审批流程主键
     * @return 事项审批流程
     */
    public ApprovalFlow selectApprovalFlowById(Long id);

    /**
     * 查询事项审批流程列表
     * 
     * @param approvalFlow 事项审批流程
     * @return 事项审批流程集合
     */
    public List<ApprovalFlow> selectApprovalFlowList(ApprovalFlow approvalFlow);

    public List<ApprovalFlow> selectApprovalFlowListByEventApprovalId(Long eventApprovalId);

    public List<ApprovalFlow> selectApprovalFlowOldListByEventApprovalId(Long eventApprovalId);

    /**
     * 新增事项审批流程
     * 
     * @param approvalFlow 事项审批流程
     * @return 结果
     */
    public int insertApprovalFlow(ApprovalFlow approvalFlow);

    /**
     * 修改事项审批流程
     * 
     * @param approvalFlow 事项审批流程
     * @return 结果
     */
    public int updateApprovalFlow(ApprovalFlow approvalFlow);

    /**
     * 批量删除事项审批流程
     * 
     * @param ids 需要删除的事项审批流程主键集合
     * @return 结果
     */
    public int deleteApprovalFlowByIds(Long[] ids);

    /**
     * 删除事项审批流程信息
     * 
     * @param id 事项审批流程主键
     * @return 结果
     */
    public int deleteApprovalFlowById(Long id);
}
